*,
*::before,
*::after {
  box-sizing: border-box;
}

ul{
  text-align: center;
   
  color: #EBFFFF;
  background-color: #104760;
  list-style: none;
  margin: 0;
  padding: 5px 0;
}

.horizontal{
  display: flex;
  justify-content: center;
  align-items: center;
  /* width: 100%; */
  flex-wrap: wrap;
  gap: 0 25px;
  margin: 15px 0px 50px 0px;
  padding: 5px;
  
}

li{
  padding: 0;
}


body{
    margin: 0 8px;
    background-color: #082735;
    color: #EBFFFF;
    font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
        
}

 h2 {
    text-align: center;
      font-family: "Sixtyfour", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "BLED" 0,
    "SCAN" 0;    
}  

h3 {
  letter-spacing: 1px;
  font-size: medium;
  font-weight: lighter;
}

h5 {
  max-width: 1000px;
  letter-spacing: 1px;
  font-weight: lighter;
  /* padding: 0 0 0 50px; */
  /* margin-right: 250px; */


}


a {
    color: inherit;       /* übernimmt die umgebende Textfarbe */
    text-decoration: none; /* entfernt Unterstreichung */
    font-size: 1rem;
}

a.aktiv {
  font-weight: bold;
}


a:hover {
    font-weight: bold;
    text-decoration: none;
  }

  .horizontal a{
  /* display: inline-block; */
  position: relative;
}

.horizontal a::after{
  content: attr(data-label);
  font-weight: bold;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  display: block;
}

 /* .timeline {
  padding-left: 50px;
    
} */



/* .container {
    display: grid;          Elemente nebeneinander 
    align-items: flex-start;  Oben bündig 
     justify-content: space-between; 
    gap: 0px;              Abstand zwischen Bild und Text 
    grid-template-columns: [first] 400px [line2] 1000px;
  }
  
   .container img {
    width: 200px;          
    height: auto;          
    max-width: 100%;
  }  */
  
  .timeline {
        position: relative;
        max-width: 800px;
        margin: auto;
        padding: 20px 0;
    }

      .timeline-container {
        padding: 5px 5px;
        position: relative;
        background-color: inherit;
        width: 50%;
        
    }


    
    .left { left: 0; }
    .right { left: 50%; }
    .right::after { left: -10px; }

    /* Details Styling */
    details {
        background: #104760;
        border-radius: 6px;
        padding: 10px 15px;
        margin-top: 10px;
        
        
    }

    summary {
        /* font-weight: bold; */
        cursor: pointer;
        outline: none;
        letter-spacing: 2px;
      
    }

    .firma {
      font-weight: bold;
      letter-spacing: 2px;
       display: inline-block;
      margin-top: 8px;
      font-size: medium;
      

    }

       .details-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* wenn details offen ist, Inhalt ausklappen */
details[open] .details-content {
  max-height: 500px; /* ggf. größer machen, wenn viel Inhalt */
}

/* Leichter Fade-In zusätzlich (optional) */
details[open] .details-content {
  animation: fadeIn 0.3s ease-in-out;
}

    /* Animation beim Öffnen */
    /* details[open] {
        animation: fadeIn 0.3s ease-in-out;
    } */

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-3px); }
        to { opacity: 1; transform: translateY(0); }
    }


  @media (max-width: 600px) {
            ul, li {
                flex-direction: column; /* Navigation untereinander */
                align-items: center;
            }

              li {
              padding: 0;
            }

            .horizontal li a {
              font-size: 0.9rem;     /* kleinere Schrift */
              padding: 0.4rem 0.6rem;
              display: inline-block;
            }

            .horizontal {
              flex-wrap: wrap;
              gap: 8px;
            }

            /* ul, li a {
                padding: 0.8rem;
                width: 100%;
                text-align: center;
                border-bottom: 1px;
            } */

            header {
                font-size: 1rem;
            }

             .timeline {
              max-width: 100%;
              padding: 10px 0;
            }


            .timeline-container {
              width: 90%;
              padding: 10px 20px;  
              
            }

            .timeline-container.left, .timeline-container.right, .left, .right {
              left: 0;
              right: 0;
              
            }

             h3 {
              font-size: 1rem;
              letter-spacing: 1px;
            }

             h5 {
              font-size: 0.9rem;
              max-width: 100%;
            }

        }

        
        /* .timeline::after {
            left: 31px;
        }

        .timeline-container {
            width: 100%;
            padding-left: 70px;
            padding-right: 25px;
        }

        .timeline-container::after {
            left: 15px;
        }

        .left::before, .right::before {
            left: 60px;
            border: medium solid white;
            border-width: 10px 10px 10px 0;
            border-color: transparent white transparent transparent;
        }

        .right {
            left: 0%;
        } */
    
